<!DOCTYPE HTML>
<html lang="en">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="蚂蚁金服和字节跳动の面经, Casey Lu&#39;s Blog">
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <title>蚂蚁金服和字节跳动の面经 | Casey Lu&#39;s Blog</title>
    <link rel="icon" type="image/png" href="/medias/maozhao.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>
    
<meta name="generator" content="Hexo 4.2.0"><link rel="alternate" href="/atom.xml" title="Casey Lu's Blog" type="application/atom+xml">
<link rel="stylesheet" href="/css/prism-tomorrow.css" type="text/css"></head>


<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/logo.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">Casey Lu's Blog</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>Index</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/tags" class="waves-effect waves-light">
      
      <i class="fas fa-tags" style="zoom: 0.6;"></i>
      
      <span>Tags</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/categories" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>Categories</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/archives" class="waves-effect waves-light">
      
      <i class="fas fa-archive" style="zoom: 0.6;"></i>
      
      <span>Archives</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/about" class="waves-effect waves-light">
      
      <i class="fas fa-user-circle" style="zoom: 0.6;"></i>
      
      <span>About</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="Search" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>

<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">Casey Lu's Blog</div>
        <div class="logo-desc">
            
            Never really desperate, only the lost of the soul.
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			Index
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/tags" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-tags"></i>
			
			Tags
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			Categories
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			Archives
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/about" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-user-circle"></i>
			
			About
		</a>
          
        </li>
        
        
    </ul>
</div>

        </div>

        
    </nav>

</header>

    
<script src="/libs/cryptojs/crypto-js.min.js"></script>
<script>
    (function() {
        let pwd = '3ec7b329c0f44b4bda6a5d5372b38d903e9bb9c8c9263e82642a9c27025e420f';
        if (pwd && pwd.length > 0) {
            if (pwd !== CryptoJS.SHA256(prompt('嘻嘻嘻，访问本文章需要密码')).toString(CryptoJS.enc.Hex)) {
                alert('密码错误哦~');
                location.href = '/';
            }
        }
    })();
</script>




<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/articleimages/35.jpg')">
    <div class="container" style="right: 0px;left: 0px;">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <h1 class="description center-align post-title">蚂蚁金服和字节跳动の面经</h1>
                </div>
            </div>
        </div>
    </div>
</div>




<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        width: 345px;
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        margin: 35px 0 15px 0;
        padding-left: 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content {
        height: calc(100vh - 250px);
        overflow: auto;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #toc-content .is-active-link::before {
        background-color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px;
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                    <div class="article-tag">
                        
                            <a href="/tags/Javascript/">
                                <span class="chip bg-color">Javascript</span>
                            </a>
                        
                            <a href="/tags/CSS/">
                                <span class="chip bg-color">CSS</span>
                            </a>
                        
                            <a href="/tags/HTML/">
                                <span class="chip bg-color">HTML</span>
                            </a>
                        
                            <a href="/tags/Vue/">
                                <span class="chip bg-color">Vue</span>
                            </a>
                        
                    </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                    <div class="post-cate">
                        <i class="fas fa-bookmark fa-fw icon-category"></i>
                        
                            <a href="/categories/%E7%AC%94%E8%AF%95%E9%9D%A2%E8%AF%95/" class="post-category">
                                笔试面试
                            </a>
                        
                    </div>
                    
                </div>
            </div>

            <div class="post-info">
                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-minus fa-fw"></i>Publish Date:&nbsp;&nbsp;
                    2020-04-01
                </div>
                

                

                
                <div class="info-break-policy">
                    <i class="far fa-file-word fa-fw"></i>Word Count:&nbsp;&nbsp;
                    1.3k
                </div>
                

                

                
            </div>

        </div>
        <hr class="clearfix">
        <div class="card-content article-card-content">
            <div id="articleContent">
                <p><strong>公司：</strong> 蚂蚁金服<br>
<strong>部门：</strong> 数字金融部</p>
<h2 id="蚂蚁测评">蚂蚁测评</h2>
<p><strong>时间：</strong> <em>2020.03.19  14:00 - 15:20</em></p>
<p><strong>内容：</strong> 行测 + 性格测试</p>
<h2 id="蚂蚁一面">蚂蚁一面</h2>
<p><strong>时间：</strong>  <em>2020.03.22  10:10 - 11:24</em></p>
<p>第一次碰到女面试官，除了开心就是开心啊~ 希望是以后工作的前辈吧！面试时间是周末，但是面试官在家加班还很认真的问了我超级多的问题~</p>
<ol>
<li>
<p>Vue项目中自定义的组件？</p>
</li>
<li>
<p>如何实现组件在其他项目上的扩展使用？比如像npm的包给别的项目引用</p>
</li>
<li>
<p>小程序开发中的问题，机制?你主要负责的是什么部分，项目中你觉得有意思的点是什么？</p>
</li>
<li>
<p>对于Vue的问题，虚拟DOM的渲染，虚拟DOM对于普通DOM的提升在哪里？因为什么才优于普通DOM</p>
</li>
<li>
<p>对于Promise的原理，以及解析，有什么状态？状态之间可以逆转吗？方法，如何捕获异常，可不可以对Promise内部的错误进行try…catch，(不可以，那为什么？。。。)</p>
</li>
<li>
<p>ES6，let和var的对比，为啥要变量提升?</p>
</li>
</ol>
<p>场景题： console.log(i)<br>
var i = 1</p>
<p>结果是什么？ Undefined，为什么？<br>
只是声明的变量会提升，初始化不会提升</p>
<p>所以你觉得变量的提升是声明的提升还是赋值的提升？（声明的提升）</p>
<ol start="7">
<li>
<p>箭头函数的操作，跟普通函数比有什么区别，this指向哪里？可以修改不？</p>
</li>
<li>
<p>对于改变this指向，知道哪些函数？有什么区别（bind,call,apply）</p>
</li>
<li>
<p>Vue的核心机制是什么？有什么特点？</p>
</li>
<li>
<p>Vue和 React的区别?</p>
</li>
<li>
<p>响应事件的触发（只说了冒泡、其余不知道）</p>
</li>
<li>
<p>Position有哪些值，属性相对参照的是什么？</p>
</li>
<li>
<p>盒子模型，如何控制盒子模型的位置</p>
</li>
<li>
<p>如何使用css画一个三角形</p>
</li>
<li>
<p>三列布局的实现方式？分别怎么实现（Float、Position、Flex逻辑有点混乱）</p>
</li>
<li>
<p>Flex布局的默认对齐方式是什么（说错了）？如果一行装不下的话怎么去实现flex-wrap? 考虑子元素的换行方式</p>
</li>
<li>
<p>对同源策略有了解吗？跨域的实现方式都说一下？</p>
</li>
<li>
<p>JSONP的原理，以及jsonp中的回调函数应该挂载到那里？</p>
</li>
<li>
<p>CORS的实现原理？服务器端是实现接口还是配置？使用注意？</p>
</li>
<li>
<p>如何去判别Array的数据类型？（typeof不可以，instanceOf,object.prototype.toString().all()）</p>
</li>
<li>
<p>CSS的选择器哪些？优先级是什么？</p>
<p>场景题：div .ab{} 和 .ab div{}哪个效果更好一些？为什么？</p>
</li>
<li>
<p>关于数组的操作问了很多：map()和forEach()的对比</p>
<p>1）如果只是遍历数组不修改用什么?（应该是使用forEach吧）</p>
<p>foreach的用法（function(item,index){},this）, this默认undifined</p>
<p>2）如何删除数组中的元素（splice(stratIndex,<br>
count , content…)}）每个参数的含义，如果第二个参数设为0什么意思？</p>
<p>3）你刚才说的slice()是在原数组上操作吗？（不是，生成新的，返回一个新数组）</p>
<p>那splice呢？是在原数组上面修改的吗？</p>
</li>
<li>
<p>ES5中的什么属性可以清除掉?</p>
</li>
</ol>
<p>编程题：</p>
<ol>
<li>程序结果分析</li>
</ol>
<pre class=" language-language-javascript"><code class="language-language-javascript">for(let i = 0; i < 5 ;i++){
   let i = 3
}
</code></pre>
<p>会不会报错？为什么？（依旧是考察变量的提升）</p>
<ol start="2">
<li>
<p>升序数组，求和为num的两个元素。（双指针）</p>
</li>
<li>
<p>数组的去重，时间复杂度  O(n)(不能利用Set)    实现方式：indexOf、Object、Map</p>
</li>
</ol>
<p>提问：</p>
<p>Q：目前主要使用的技术栈是什么？ 基于React的H5 和 小程序都有</p>
<p>Q：业务覆盖范围有哪些？理财啊，黄金啊之类的金融相关的内容</p>
<p>二面记错面试时间了，约的时候就以为是十点钟，在日历上标记了也是10:00，所以10:20的时候去问了HR以为是面试官迟到了，之后接到电话赶紧给面试官道歉！<img class="emoji" draggable="false" alt="😢" src="https://twemoji.maxcdn.com/v/12.1.5/72x72/1f622.png"/><br>
<img src="https://img-blog.csdnimg.cn/20200401114131536.jpeg" alt=""></p>
<h2 id="蚂蚁二面">蚂蚁二面</h2>
<p><strong>时间：</strong>  <em>2020.03.25  10:30 - 11:06</em></p>
<p>1.有用过Canvas？和Svg的区别（绘制图片的格式，Svg是矢量图；事件处理器之类；适用范围不一样）</p>
<p>2.说一下项目吧？有什么难点和亮点</p>
<p>介绍了大概15min项目</p>
<p>3.了解Flex布局吗？主轴和交叉轴讲解下</p>
<ol start="4">
<li>
<p>三列布局讲解下(flex实现)</p>
</li>
<li>
<p>webSocket和传统的axios轮询的区别？</p>
</li>
<li>
<p>跨域有什么了解？有没有实现跨域的方式？对比jsonp和Cors</p>
</li>
<li>
<p>如何实现深拷贝？为啥要深拷贝？</p>
</li>
<li>
<p>熟悉node吗？有用过吗？</p>
</li>
<li>
<p>ES6中的新语法用过没？跟我讲下箭头函数吧？</p>
</li>
<li>
<p>浏览器从输入URL到加载页面发生了什么？</p>
</li>
<li>
<p>cookie,sessionStorage、localStorage的区别</p>
</li>
<li>
<p>移动端你了解吧？那怎么办解决iphone的显示适配问题</p>
</li>
<li>
<p>事件的传递，监听</p>
</li>
</ol>
<p>算法题：</p>
<p>使用js实现一个洗牌的函数</p>
<pre class=" language-language-javascript"><code class="language-language-javascript">

/*洗牌函数的封装*/

function getRandom(min,max){

    return Math.floor(Math.random() * (max - min +1) + min);

}
function shuffle(arr){
    //不修改原数组
    let _arr=arr.slice();
    for(let i=0;i<_arr.length;i++){
       let j=getRandom(0,i);
       let t=_arr[i];
       _arr[i]=_arr[j];
       _arr[j]=t;
    }
    return _arr;
}
</code></pre>
<p>提问:</p>
<p>Q：对实习生的管理？会有那种职位的集体培训之类吗？</p>
<p>A：是直接边干活边学习的~~~</p>
<p>Q：谈了下自己的缺点，React还不是很熟练</p>
<h2 id="蚂蚁三面">蚂蚁三面</h2>
<p><strong>时间：</strong>  <em>2020.03.28  12:34-13:01</em></p>
<ol>
<li>
<p>浏览器输入URL到解析的全过程</p>
</li>
<li>
<p>在这个过程中，我们前端可以从哪些方面进行优化？如何优化？</p>
</li>
<li>
<p>那CDN这种在里面担任什么角色，CDN的原理是什么？</p>
</li>
<li>
<p>首页白屏加载？</p>
</li>
<li>
<p>计网的ip是osi中的哪一层，tcp呢，是干嘛的</p>
</li>
<li>
<p>操作系统的内存管理方式</p>
</li>
<li>
<p>说一下项目的具体细节（讲了登录token验证之类）</p>
</li>
<li>
<p>你使用的是vue,那你觉得vue和react这些都有什么特点？</p>
</li>
<li>
<p>说一下你未来的工作规划</p>
</li>
<li>
<p>本科期间有什么项目吗？承担什么职责？选择前端？</p>
</li>
</ol>
<p><strong>公司：</strong> 字节跳动<br>
<strong>部门：</strong> 头条研发<br>
<strong>时间：</strong>  <em>2020.03.25  14:30-16:39</em></p>
<h2 id="字节一面">字节一面</h2>
<p>简单的自我介绍，项目中的技术之类，提到什么问什么</p>
<ol>
<li>
<p>项目中的websocket具体实现，有没有测过触及率</p>
</li>
<li>
<p>事件传递的阶段（事件捕获,处于目标，事件冒泡）</p>
</li>
<li>
<p>手写<code>addEventListener</code>实现监听</p>
</li>
<li>
<p>什么时候使用onclick ？ 什么时候使用<code>addEventListener</code>？参数有几个？（x）</p>
</li>
<li>
<p>如果我们想捕获触发阶段的事件怎么办？ （我后来才明白面试官是在牵引我）</p>
</li>
<li>
<p>v-if 和 v-show的区别</p>
</li>
<li>
<p>一个url里面有哪些成分？给出一个网址分析下</p>
</li>
<li>
<p>DNS解析的原理（x）</p>
</li>
<li>
<p>CSS的盒模型，如何实现的？</p>
</li>
<li>
<p>谈一下深拷贝？以及如何实现</p>
</li>
<li>
<p><code>typeof []</code> 和 <code>[]instance of Object</code>的结果</p>
</li>
<li>
<p>手写下你项目中的<code>throttle</code>函数？有没有什么可以改下？</p>
</li>
<li>
<p>问了我项目的代码量</p>
</li>
<li>
<p>观察程序的输出结果</p>
</li>
</ol>
<pre class=" language-language-javascript"><code class="language-language-javascript">for(var i = 0； i < 5; i++){
  setTimeout(function(){
    console.log(i)
  },5)
}
</code></pre>
<p>如何让输出结果变为01234</p>
<ol start="13">
<li>爬梯子的算法题（青蛙跳台阶），递归与非递归</li>
</ol>
<p>面试官人很好，还帮我解答了上面的<code>onClick</code>和<code>addEventListener</code>，我之前说感觉没区别，然后面试官让我去查下<code>addEventListenter</code>的可选参数<code>setCapture</code>，瞬间就明白了~ 让我稍等下，联系二面的面试官</p>
<h2 id="字节二面">字节二面</h2>
<ol>
<li>紧接着一面面试官的问题，问程序的执行结果（把时间5ms改成了1000ms）</li>
</ol>
<pre class=" language-language-javascript"><code class="language-language-javascript">for(var i = 0； i < 5; i++){
  setTimeout(function(){
    console.log(i)
  },1000)
}
</code></pre>
<p>这个是怎样的输出？每个1s输出一个还是怎样？解释下为什么觉得这样</p>
<ol start="2">
<li>
<p>如何使用异步？说说你理解的异步</p>
</li>
<li>
<p>又给了一个程序看运行结果，解释下为什么这样</p>
</li>
</ol>
<pre class=" language-language-javascript"><code class="language-language-javascript">console.log('script start')
let promise1 = new Promise(function (resolve) {
    console.log('promise1')
    resolve()
    console.log('promise1 end')
}).then(function () {
    console.log('promise2')
})
setTimeout(function(){
    console.log('settimeout')
}, 1)
console.log('script end')
</code></pre>
<p>（考察Promise以及异步）</p>
<p>实际的场景发生了改变，结合了Promise()</p>
<ol start="4">
<li>
<p><code>setTimeout</code>(func(){},1)会执行吗？为什么？ 4ms</p>
</li>
<li>
<p>说一下跨域吧，以及跨域的实现方式</p>
</li>
<li>
<p>自己从代理跨域延伸到了webSocket，顺带就结合自己的项目谈了谈</p>
</li>
<li>
<p>你的项目中实现登陆功能？多角色的登录？</p>
</li>
<li>
<p>你们在项目中实现清除token或者判断token过期？</p>
</li>
<li>
<p>了解webpack的打包中如何分块打包</p>
</li>
<li>
<p>Router的底层原理（x）？怎么去实现name、path这些的管理</p>
</li>
<li>
<p>webpack里面的treeshaking和 code splitting(不了解，所以说了相关的webpack的机制)</p>
</li>
<li>
<p>结合项目谈Vuex的状态管理（mutation、action、state）</p>
</li>
<li>
<p>说一下Vue中的MVVM的模式</p>
</li>
<li>
<p>跨域中的JSONP有什么局限？CORS中怎么设置Http？服务端和前端？</p>
</li>
</ol>
<p>题目1： 手写call</p>
<pre class=" language-language-javascript"><code class="language-language-javascript">Function.prototype._call = function(ctx) {
}
fn.call()
fn._call()
</code></pre>
<p>题目2：</p>
<pre class=" language-language-javascript"><code class="language-language-javascript">for (var i = 0; i < 5; i++) {   
   setTimeout(function () { console.log(i) },1000); 
}
console.log('script start')

let promise1 = new Promise(function (resolve) {
    console.log('promise1')
    resolve()
    console.log('promise1 end')
}).then(function () {
    console.log('promise2')
})

setTimeout(function(){
    console.log('settimeout')
}, 1)

console.log('script end')
</code></pre>
<p>题目3：请写出一个可以生成整形随机数数组(内部元素不重复)的函数，并可以根据参数设置随机数生成的范围和数量，例如：函数<code>madeRandomList(a, b, c)</code>，可以生成 <code>[a, b]</code> 范围内，长度为 c 的随机数数组</p>
<p>题目4：DFS深度优先遍历DOM树[“div”, “span”, “a”, “div”, “a”, “span”, “p”]<br>
<img src="https://img-blog.csdnimg.cn/20200325212300376.png" alt="DOM树"></p>
<p>这个开始没思路，因为对DOM操作太不熟悉了，然后面试官跟我讲，说下树的深度优先遍历也可以，感觉面试官真的非常Nice啊！</p>
<p>灵活一些的问题：</p>
<ol>
<li>和前端的接触以及交往过程</li>
<li>平时都是怎么去了解前沿资讯呢？最近有了解什么吗？</li>
<li>聊起了cookie的新特性，然后还聊了下前端组件的智能化</li>
<li>我看你有自己实现项目和博客<br>
（注意，在这个过程中我一直犯了一个很严重的问题就是，我看你们阿里的…balabala,55555555我要是面试官当场灭灯了，而且我面试完半天才想起来）</li>
</ol>
<p>提问环节：</p>
<ol>
<li>部门的主要业务<br>
多媒体，音视频流之类的处理</li>
<li>感觉Node是前端必备的，但我觉得我还很多需要学，请问师兄有没有什么好的学习建议？<br>
建议还是扎实的学习还有实际的操作，真正的上手在项目中做才能够学到东西，其实做技术的都是这样的，只是去背知识点是不行的，要深入学习，还有掘金社区之类的文章虽然有的确实不错，但你会发现是不够系统的，非常零散。学习知识还是要深入扎实的学习</li>
</ol>
<h2 id="字节三面">字节三面</h2>
<p><strong>时间：</strong>  <em>2020.03.30  11:30-12:30</em></p>
<ol>
<li>
<p>说一下单点登录（我上来絮絮叨叨说了半天项目中登录逻辑的实现，直到面试官重新说了一遍）SSO</p>
</li>
<li>
<p>ES6的新属性</p>
</li>
<li>
<p>Promise以及Promise中的race方法</p>
</li>
<li>
<p>谈谈你对缓存的理解</p>
</li>
<li>
<p>CSS中进入进出动画的实现</p>
</li>
<li>
<p>AI看图作曲项目中负责的内容</p>
</li>
<li>
<p>小程序的生命周期（应用&amp;页面）</p>
</li>
<li>
<p>JS实现数组去重的多种方式</p>
</li>
<li>
<p>建议：对专业术语都不清楚，知识点的掌握有点囫囵吞枣，没有真正理解Set的概念，稳固扎实，简历的项目很简单</p>
</li>
<li>
<p>学习计划，学习前端的时间</p>
</li>
<li>
<p>PC端的开放平台toB产品</p>
</li>
</ol>
<h2 id="字节HR面">字节HR面</h2>
<p><strong>时间：</strong>  <em>2020.03.31  11:15-11:46</em><br>
ZOOM视频面</p>
<ol>
<li>几场面试下来，你的面试体验如何</li>
<li>本硕都是计算机专业，为何要跨校考研？</li>
<li>家在北方，为什么想去武汉读大学？</li>
<li>本科成绩优异，为什么没有保研？</li>
<li>考研之后的实习情况了解</li>
<li>你的简历是前端，对从事前端有什么看法吗？</li>
<li>平时学习前端的方式或者学习方式</li>
<li>实验室的方向，以及平时在实验室的工作</li>
<li>依次详细问了每个项目以及我承担的角色</li>
<li>如何看待10点下班这件事</li>
<li>目前有没有在聊其他的公司</li>
<li>入职时间，实习时长</li>
<li>秋招有什么打算</li>
<li>转正的流程介绍（希望实习长度要达到）</li>
</ol>
<p>在这里必须说，我爱死了字节的效率！！！</p>
<p>.</p>

            </div>
            <hr/>

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-user">
                        Author:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://caseylu.gitee.io" rel="external nofollow noreferrer">Casey Lu</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-link">
                        Link:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://caseylu.gitee.io/2020/04/01/23-ma-yi-jin-fu-zi-jie-tiao-dong-qian-duan-mian-shi/">https://caseylu.gitee.io/2020/04/01/23-ma-yi-jin-fu-zi-jie-tiao-dong-qian-duan-mian-shi/</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-copyright">
                        Reprint policy:
                    </i>
                </span>
                <span class="reprint-info">
                    All articles in this blog are used except for special statements
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    reprint polocy. If reproduced, please indicate source
                    <a href="https://caseylu.gitee.io" target="_blank">Casey Lu</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>Copied successfully, please follow the reprint policy of this article</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">more</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            
                                <a href="/tags/Javascript/">
                                    <span class="chip bg-color">Javascript</span>
                                </a>
                            
                                <a href="/tags/CSS/">
                                    <span class="chip bg-color">CSS</span>
                                </a>
                            
                                <a href="/tags/HTML/">
                                    <span class="chip bg-color">HTML</span>
                                </a>
                            
                                <a href="/tags/Vue/">
                                    <span class="chip bg-color">Vue</span>
                                </a>
                            
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">

<div id="article-share">
    
    
    <div class="social-share" data-sites="google,qq,qzone,wechat,weibo,douban,linkedin" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
            
                <style>
    #reward {
        margin: 40px 0;
        text-align: center;
    }

    #reward .reward-link {
        font-size: 1.4rem;
        line-height: 38px;
    }

    #reward .btn-floating:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #rewardModal {
        width: 320px;
        height: 350px;
    }

    #rewardModal .reward-title {
        margin: 15px auto;
        padding-bottom: 5px;
    }

    #rewardModal .modal-content {
        padding: 10px;
    }

    #rewardModal .close {
        position: absolute;
        right: 15px;
        top: 15px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.3rem;
        line-height: 20px;
        cursor: pointer;
    }

    #rewardModal .close:hover {
        color: #ef5350;
        transform: scale(1.3);
        -moz-transform:scale(1.3);
        -webkit-transform:scale(1.3);
        -o-transform:scale(1.3);
    }

    #rewardModal .reward-tabs {
        margin: 0 auto;
        width: 210px;
    }

    .reward-tabs .tabs {
        height: 38px;
        margin: 10px auto;
        padding-left: 0;
    }

    .reward-content ul {
        padding-left: 0 !important;
    }

    .reward-tabs .tabs .tab {
        height: 38px;
        line-height: 38px;
    }

    .reward-tabs .tab a {
        color: #fff;
        background-color: #ccc;
    }

    .reward-tabs .tab a:hover {
        background-color: #ccc;
        color: #fff;
    }

    .reward-tabs .wechat-tab .active {
        color: #fff !important;
        background-color: #22AB38 !important;
    }

    .reward-tabs .alipay-tab .active {
        color: #fff !important;
        background-color: #019FE8 !important;
    }

    .reward-tabs .reward-img {
        width: 210px;
        height: 210px;
    }
</style>

<div id="reward">
    <a href="#rewardModal" class="reward-link modal-trigger btn-floating btn-medium waves-effect waves-light red">赏</a>

    <!-- Modal Structure -->
    <div id="rewardModal" class="modal">
        <div class="modal-content">
            <a class="close modal-close"><i class="fas fa-times"></i></a>
            <h4 class="reward-title">谢谢大佬的小鱼干，喵~</h4>
            <div class="reward-content">
                <div class="reward-tabs">
                    <ul class="tabs row">
                        <li class="tab col s6 alipay-tab waves-effect waves-light"><a href="#alipay">支付宝</a></li>
                        <li class="tab col s6 wechat-tab waves-effect waves-light"><a href="#wechat">微 信</a></li>
                    </ul>
                    <div id="alipay">
                        <img src="/medias/reward/alipay.jpg" class="reward-img" alt="支付宝打赏二维码">
                    </div>
                    <div id="wechat">
                        <img src="/medias/reward/wechat.png" class="reward-img" alt="微信打赏二维码">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.tabs').tabs();
    });
</script>
            
        </div>
    </div>

    
        <link rel="stylesheet" href="/libs/gitalk/gitalk.css">
<link rel="stylesheet" href="/css/my-gitalk.css">

<div class="card gitalk-card" data-aos="fade-up">
    <div class="comment_headling" style="font-size: 20px; font-weight: 700; position: relative; left: 20px; top: 15px; padding-bottom: 5px;">
        <i class="fas fa-comments fa-fw" aria-hidden="true"></i>
        <span>评论</span>
    </div>
    <div id="gitalk-container" class="card-content"></div>
</div>

<script src="/libs/gitalk/gitalk.min.js"></script>
<script>
    let gitalk = new Gitalk({
        clientID: 'b739596984975414aa79',
        clientSecret: 'c5792bc3376f951910111f232176fbadfa919286',
        repo: 'L0ittle.github.io',
        owner: 'L0ittle',
        admin: "L0ittle",
        id: '2020-04-01T11-30-26',
        distractionFreeMode: false  // Facebook-like distraction free mode
    });

    gitalk.render('gitalk-container');
</script>
    

    

    

    

    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="fas fa-chevron-left"></i>&nbsp;Previous</div>
            <div class="card">
                <a href="/2020/04/03/24-html5-cun-chu/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/articleimages/8.jpg" class="responsive-img" alt="HTML5存储">
                        
                        <span class="card-title">HTML5存储</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            本文主要介绍三种HTML5的浏览器端存储方式，以及每种方式具体的实现原理，操作规范以及它们各自的优缺点和适用场景，同时也会介绍一些非主流的存储方式。
一、关于浏览器存储
在H5之前，有cookie 和 userdata
1） cookies
                        
                    </div>
                    <div class="publish-info">
                        <span class="publish-date">
                            <i class="far fa-clock fa-fw icon-date"></i>2020-04-03
                        </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-bookmark fa-fw icon-category"></i>
                            
                            <a href="/categories/%E5%89%8D%E7%AB%AF%E5%9F%BA%E7%A1%80/" class="post-category">
                                    前端基础
                                </a>
                            
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/HTML/">
                        <span class="chip bg-color">HTML</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                Next&nbsp;<i class="fas fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/2020/03/31/22-yang-chun-san-yue-de-bi-xia-liu-shui/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/articleimages/2.jpg" class="responsive-img" alt="三月的笔下流水">
                        
                        <span class="card-title">三月的笔下流水</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            2020年3月份，我想这是我读研以来最辛苦的一个月份，习惯了接近二十年校园生活的襁褓，面对求职这个接下来人生的重要的转折阶段，二次逆风成长。
挫折乃成长良药
这个世界上一路顺畅通关打怪的人绝对不占据多数，除非实力超群或者幸运满分。之前遇到的
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-03-31
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-bookmark fa-fw icon-category"></i>
                            
                            <a href="/categories/%E4%BA%BA%E7%94%9F%E6%9D%82%E8%B0%88/" class="post-category">
                                    人生杂谈
                                </a>
                            
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/Life/">
                        <span class="chip bg-color">Life</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
    </div>
</article>

</div>


<script>
    $('#articleContent').on('copy', function (e) {
        // IE8 or earlier browser is 'undefined'
        if (typeof window.getSelection === 'undefined') return;

        var selection = window.getSelection();
        // if the selection is short let's not annoy our users.
        if (('' + selection).length < Number.parseInt('100')) {
            return;
        }

        // create a div outside of the visible area and fill it with the selected text.
        var bodyElement = document.getElementsByTagName('body')[0];
        var newdiv = document.createElement('div');
        newdiv.style.position = 'absolute';
        newdiv.style.left = '-99999px';
        bodyElement.appendChild(newdiv);
        newdiv.appendChild(selection.getRangeAt(0).cloneContents());

        // we need a <pre> tag workaround.
        // otherwise the text inside "pre" loses all the line breaks!
        if (selection.getRangeAt(0).commonAncestorContainer.nodeName === 'PRE') {
            newdiv.innerHTML = "<pre>" + newdiv.innerHTML + "</pre>";
        }

        var url = document.location.href;
        newdiv.innerHTML += '<br />'
            + 'From: Casey Lu&#39;s Blog<br />'
            + 'Author: Casey Lu<br />'
            + 'Link: <a href="' + url + '">' + url + '</a><br />'
            + '本文章著作权归作者所有，任何形式的转载都请注明出处。';

        selection.selectAllChildren(newdiv);
        window.setTimeout(function () {bodyElement.removeChild(newdiv);}, 200);
    });
</script>


<!-- 代码块功能依赖 -->
<script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>

<!-- 代码语言 -->

<script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>


<!-- 代码块复制 -->

<script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>


<!-- 代码块收缩 -->

<script type="text/javascript" src="/libs/codeBlock/codeShrink.js"></script>


<!-- 代码块折行 -->

<style type="text/css">
code[class*="language-"], pre[class*="language-"] { white-space: pre !important; }
</style>


    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget">
            <div class="toc-title"><i class="far fa-list-alt"></i>&nbsp;&nbsp;TOC</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <a class="btn-floating btn-large bg-color">
        <i class="fas fa-list-ul"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            collapseDepth: Number('0'),
            headingSelector: 'h2, h3, h4'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h2, h3, h4').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).hide();
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).show();
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>

    

</main>



    <footer class="page-footer bg-color">
    
        <link rel="stylesheet" href="/libs/aplayer/APlayer.min.css">
<div class="">
    
    <div class="row">
        <meting-js class="col l8 offset-l2 m10 offset-m1 s12"
                   server="netease"
                   type="playlist"
                   id="4892766072"
                   fixed='true'
                   autoplay='false'
                   theme:='#42b983'
                   loop='all'
                   order='random'
                   preload='auto'
                   volume='0.7'
                   list-folded='true'
        >
        </meting-js>
    </div>
</div>

<script src="/libs/aplayer/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>

    
    <div class="container row center-align" style="margin-bottom: 0px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            <span id="year">2020</span>
            <a href="https://caseylu.gitee.io" target="_blank">Casey Lu</a>
            |&nbsp;Powered by&nbsp;<a href="https://hexo.io/" target="_blank">Hexo</a>
            |&nbsp;Theme&nbsp;<a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
            <br>
            
            &nbsp;<i class="fas fa-chart-area"></i>&nbsp;站点总字数:&nbsp;<span
                class="white-color">63.2k</span>&nbsp;字
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <br>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">
    <a href="https://github.com/L0ittle" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
        <i class="fab fa-github"></i>
    </a>



    <a href="mailto:caseylu119@163.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>







    <a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=1351238945" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 1351238945" data-position="top" data-delay="50">
        <i class="fab fa-qq"></i>
    </a>







    <a href="/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
        <i class="fas fa-rss"></i>
    </a>

</div>
    </div>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;Search</span>
            <input type="search" id="searchInput" name="s" placeholder="Please enter a search keyword"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script src="/js/search.js"></script>
<script type="text/javascript">
$(function () {
    searchFunc("/" + "search.xml", 'searchInput', 'searchResult');
});
</script>
    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Global site tag (gtag.js) - Google Analytics -->


    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    <script src="/libs/others/clicklove.js" async="async"></script>
    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    

    

    
    
    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
